FROM golang:1.20.1

WORKDIR /go/src

COPY ./ /go/src

EXPOSE 9009 3306 6379 9010

RUN go env -w GO111MODULE=on \
    && go env -w GOPROXY=https://goproxy.cn \
    && go build /go/src/main.go




